import os
import sys
import xbmcaddon
import time
import subprocess

__scriptname__ = "Opera Web Browser"
__author__     = "MCPC-VDR"
__url__        = "http://www.mcpc.org.ua"
__settings__   = xbmcaddon.Addon(id='web.browser.opera')
__cwd__        = __settings__.getAddonInfo('path')
__start__      = xbmc.translatePath( os.path.join( __cwd__, 'bin', "opera") )
__stop__       = xbmc.translatePath( os.path.join( __cwd__, 'bin', "") )

subprocess.Popen(__start__, shell=True, close_fds=True)

while (not xbmc.abortRequested):
  time.sleep(0.250)
